import { post } from '@/utils/request'

export async function query(params) {
  return await post('prometheus', { url: 'api/v1/query', params: params })
}

export async function query_range(params) {
  return await post('prometheus', { url: 'api/v1/query_range', params: params })
}

export async function series(params) {
  return await post('prometheus', { url: 'api/v1/series', params: params })
}

export async function label_datname_values(params) {
  return await post('prometheus', { url: 'label/datname/values', params: params })
}
